import request from '@/utils/request'

// 查询短信发送记录列表
export function listSmsLog(query) {
  return request({
    url:  '/api/sms/smsLog/list',
    method: 'get',
    params: query
  })
}

// 查询短信发送记录详细
export function getSmsLog(id) {
  return request({
    url:  '/api/sms/smsLog/detail/' + id,
    method: 'get'
  })
}

// 新增短信发送记录
export function addSmsLog(data) {
  return request({
    url:  '/api/sms/smsLog/add',
    method: 'post',
    data: data
  })
}

// 修改短信发送记录
export function updateSmsLog(data) {
  return request({
    url:  '/api/sms/smsLog/edit',
    method: 'post',
    data: data
  })
}

// 删除短信发送记录
export function delSmsLog(id) {
  return request({
    url:  '/api/batchRemove/sms/smsLog/' + id,
    method: 'post'
  })
}

export const exportXlsUrl =  '/api/sms/smsLog/export';
